package com.baizhi.entity;

import com.fasterxml.jackson.annotation.JsonIgnore;

import java.io.Serializable;

public class Passport implements Serializable {
    private Integer id;
    private String serial;

    @JsonIgnore
    private Person person;

    public Passport() {
    }

    public Passport(Integer id, String serial, Person person) {
        this.id = id;
        this.serial = serial;
        this.person = person;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getSerial() {
        return serial;
    }

    public void setSerial(String serial) {
        this.serial = serial;
    }

    public Person getPerson() {
        return person;
    }

    public void setPerson(Person person) {
        this.person = person;
    }

    @Override
    public String toString() {
        return "Passport{" +
                "id=" + id +
                ", serial='" + serial + '\'' +
                ", person=" + person +
                '}';
    }
}
